package com.dubious.interview.graph;

public class DFSVertexResult {
    private int discovered;
    private int finished;
    
    public DFSVertexResult(int discovered, int finished)
    {
        this.discovered = discovered;
        this.finished = finished;
    }
    
    @Override
    public boolean equals(Object other)
    {
        if(other == null || !(other instanceof DFSVertexResult))
        {
            return false;
        }
        
        DFSVertexResult otherResult = (DFSVertexResult) other;
        
        return otherResult.discovered == this.discovered && otherResult.finished == this.finished;
    }
    
    @Override
    public int hashCode()
    {
        throw new UnsupportedOperationException("not yet implemented");
    }
    
    @Override
    public String toString()
    {
        return discovered + "," + finished;
    }
}
